/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package swingDemoEvent;

/**
 *
 * @author Administrator
 */
public class AnonymousTest1 {

    public static void main(String a[]) {
        //A1 a111=new A1();
//	   	 A1 a11=new A1(){
//			public void show(){
//				System.out.println(g);
//			}
//		};
//		a11.show();
//		}

        (new A1() {

            public void show() {
                System.out.println(g);
            }
        }).show();
    }
}

interface A1 {

    double g = 9.8;

    void show();
}
